import React from 'react';
import ReactDOM from 'react-dom';
import registerServiceWorker from './registerServiceWorker';
import "./style/css/style.css"
import { HashRouter, Route, Redirect,Switch } from 'react-router-dom'



import Login from './components/index/index.js';
import Drecord from './components/drecord/drecord.js'
import Dregister from './components/dregister/dregister.js'
import Hospitalinfo from './components/hospitalinfo/hospitalinfo.js'
import Hospitallist from './components/hospitallist/hospitallist.js'
import Hospitalps from './components/hospitalps/hospitalps.js'
import Popup from './components/popup/popup.js'
import Reservations from './components/reservations/reservations.js'
import Record from './components/record/record.js'
import Register from './components/register/register.js'

ReactDOM.render(
         (
          <HashRouter>
			<Switch>
				<Route path='/' exact component={Login}>
				
				</Route>
				<Route path='/dregister' component={Dregister}></Route>
				<Route path='/drecord' component={Drecord}></Route>
				<Route path='/popup' component={Popup}></Route>
				<Route path='/record' component={Record}></Route>
				<Route path='/reservations/:checkUpOrderId' component={Reservations}></Route>
                <Route path='/register' component={Register}></Route>
                <Route path='/hospitalinfo/:partyId' component={Hospitalinfo}></Route>
                <Route path='/hospitallist/:checkUpOrderId' component={Hospitallist}></Route>
                <Route path='/hospitalps' component={Hospitalps}></Route>
                



				<Redirect to='/'></Redirect>
			</Switch>	
		</HashRouter>), document.getElementById('root'));
registerServiceWorker();
